# Contributor: Maxim Karasev <begs@disroot.org>
# Maintainer: Maxim Karasev <begs@disroot.org>
pkgname=nvim-cmp-path
pkgver=0.0.0_git20220202
_commit=466b6b8270f7ba89abd59f402c73f63c7331ff6e
pkgrel=0
pkgdesc="nvim-cmp source for path"
url="https://github.com/hrsh7th/cmp-path"
arch="noarch !riscv64" # neovim
license="MIT"
subpackages="$pkgname-doc"
depends="nvim-cmp"
source="https://github.com/hrsh7th/cmp-path/archive/$_commit/nvim-cmp-$pkgver.tar.gz"
builddir="$srcdir/cmp-path-$_commit"
options="!check" # no tests

package() {
	install -d "$pkgdir"/usr/share/nvim/site
	cp -ra after lua "$pkgdir"/usr/share/nvim/site
	install -Dm644 README.md "$pkgdir"/usr/share/doc/$pkgname/README.md
}

sha512sums="
47865e505e0325c7eb43103ef1bae5881865fddbe7ae4c58938af08808d26706faf685ff8c275c3ebcc5f94fcfb3d168375feab9c8901e7d705c28ecdd96c025  nvim-cmp-0.0.0_git20220202.tar.gz
"
